package com.luyuan.crm.member.service;

import java.util.List;

import org.hibernate.criterion.Order;

import com.luyuan.crm.member.model.MemberGroup;
import com.ruijie.foundation.annotation.DomainService;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;

@DomainService
public interface MemberGroupService {
    MemberGroup getById(String id);

    void addMemberGroup(MemberGroup memberGroup);

    void removeMemberGroup(MemberGroup memberGroup);

    void updateMemberGroup(MemberGroup memberGroup);

    List<MemberGroup> getAll();

    Page pagedQuery(CriteriaTemplate criteria, int pageNo, int pageSize, List<Order> orders);
}
